package org.acb.sgp.controller.impl;

import java.util.List;
import org.acb.sgp.beans.Actor;
import org.acb.sgp.controller.ActorController;
import org.acb.sgp.service.DataAccessService;
import org.acb.sgp.service.impl.DataAccessServiceImpl;

public class ActorControllerImpl implements ActorController {

    private final DataAccessService dataAccessService = new DataAccessServiceImpl();

    @Override
    public void registrarActor(Actor actor) {
        dataAccessService.registrarActor(actor);
    }

    @Override
    public void eliminarActor(Actor actor) {
        dataAccessService.eliminarActor(actor);
    }

    @Override
    public List<Actor> buscarActoresPorCodEscena(Integer codEscena) {
        return dataAccessService.buscarActoresPorCodEscena(codEscena);
    }

    @Override
    public List<Actor> listaActores() {
        return dataAccessService.listaActores();
    }

}
